<extend name="Public:base"/>


<block name="left">
    <ul>
        <li><a href="{:U('Fen/index')}">分销设置</a></li>
        <li><a href="{:U('Fen/vip_set')}">会员升级设置</a></li>
        <li><a href="{:U('Fen/shang')}">分销商管理</a></li>
        <li><a href="{:U('Fen/ti')}">佣金提现管理</a></li>
    </ul>
</block>

<block name="right">
	<form action="{:U('Fen/vip_set')}" method="POST">
	<div class="config-items">
                    <div class="config-title">
                        <h1>太阳网会员升级设置</h1>
                    </div>
                   <!--  -->
                    <div class="rt_content">
      <div class="page_title">
      </div>
       <li>
        <span class="item_name" style="width:120px;">VIP1：</span>
        +<input type="text" name="VIP1" class="textbox textbox_295" value="{$Think.config.VIP1}" />
       </li>
        <li>
        <span class="item_name" style="width:120px;">VIP2：</span>
        +<input type="text" name="VIP2" class="textbox textbox_295" value="{$Think.config.VIP2}" />
       </li>
        <li>
        <span class="item_name" style="width:120px;">VIP3：</span>
        +<input type="text" name="VIP3" class="textbox textbox_295" value="{$Think.config.VIP3}" />
       </li>
        <li>
        <span class="item_name" style="width:120px;">VIP4：</span>
        +<input type="text" name="VIP4" class="textbox textbox_295" value="{$Think.config.VIP4}" />
       </li>
        <li>
        <span class="item_name" style="width:120px;">VIP5：</span>
        +<input type="text" name="VIP5" class="textbox textbox_295" value="{$Think.config.VIP5}" />
       </li>
        <li>
        <span class="item_name" style="width:120px;">VIP6：</span>
        +<input type="text" name="VIP6" class="textbox textbox_295" value="{$Think.config.VIP6}" />
       </li>
        <li>
        <span class="item_name" style="width:120px;">VIP7：</span>
        +<input type="text" name="VIP7" class="textbox textbox_295" value="{$Think.config.VIP7}" />
       </li>
        <li>
        <span class="item_name" style="width:120px;">VIP8：</span>
        +<input type="text" name="VIP8" class="textbox textbox_295" value="{$Think.config.VIP8}" />
       </li>
       
       <li>
        <span class="item_name" style="width:120px;"></span>
        <input type="submit" value="确定修改" class="link_btn"/>
       </li>
 </div>
                </div>
	</form>
	<script type="text/javascript">
		function check_form(){

			var err_msg = '';
			
			for (var i = 1; i < 3; i++) {
				var tag_id = 'level'+i;
				var tag = document.getElementById(tag_id);

				if (isNaN(tag.value) || tag.value == '') {
					err_msg += tag_id+'参数填写错误\n';
				}
			}

			for (var i = 1; i < 9; i++) {
				var tag_id = 'vip'+i;
				var tag = document.getElementById(tag_id);

				if (isNaN(tag.value) || tag.value == '') {
					err_msg += tag_id+'参数填写错误\n';
				}
			}

			if (err_msg != '') {
				alert(err_msg);
				return false;
			}

			return true;
		}
	</script>
</block>
	